import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Index from '@/views/index/index'
import Manage from '@/views/manage/index'
import Login from '@/views/login/login'
import Emp from '@/views/emp/emp'
import Empadd from '@/views/emp/add'
import Empsearch from '@/views/emp/search'
import Empdetail from '@/views/emp/detail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Emp',
      component: Emp
    },
    {
      path: '/manage',
      name: 'Manage',
      component: Manage
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/emp',
      name: 'Emp',
      component: Emp
    },
    {
      path: '/empadd',
      name: 'Empadd',
      component: Empadd
    },
    {
      path: '/search',
      name: 'Empsearch',
      component: Empsearch
    },
    {
      path: '/detail/:id/',
      name: 'Empdetail',
      component: Empdetail
    }
  ]
})
